/* $Id: ConfigurationParams.java,v 1.4 2009/07/18 20:51:50 nhnb Exp $ */
/***************************************************************************
 *						(C) Copyright 2003 - Marauroa					   *
 ***************************************************************************
 ***************************************************************************
 *																		   *
 *	 This program is free software; you can redistribute it and/or modify  *
 *	 it under the terms of the GNU General Public License as published by  *
 *	 the Free Software Foundation; either version 2 of the License, or	   *
 *	 (at your option) any later version.								   *
 *																		   *
 ***************************************************************************/
package marauroa.common;

/**
 * ConfigurationParams encapsulates parameters to be
 * used to initialize the Configuration class.
 * 
 * @author Martin Fuchs
 */
public class ConfigurationParams {

	private boolean relativeToHome = false;

	private String basedir = "";

	/** Default name of configuration file */
	private String configurationFile = "server.ini";

	private boolean persistence = true;

	public ConfigurationParams() {
		// default constructor
	}

	public ConfigurationParams(boolean relativeToHome, String basedir, String configurationFile) {
		this.relativeToHome = relativeToHome;
		this.basedir = basedir;
		this.configurationFile = configurationFile;
	}

	public void setRelativeToHome(boolean relativeToHome) {
		this.relativeToHome = relativeToHome;
	}

	public boolean isRelativeToHome() {
		return relativeToHome;
	}

	public void setBasedir(String basedir) {
		this.basedir = basedir;
	}

	public String getBasedir() {
		return basedir;
	}

	public void setConfigurationFile(String configurationFile) {
		this.configurationFile = configurationFile;
	}

	public String getConfigurationFile() {
		return configurationFile;
	}

	public void setPersistence(boolean persistence) {
		this.persistence = persistence;
	}

	public boolean isPersistence() {
		return persistence;
	}

}
